var net =  require('net');

var server  = net.createServer(function(socket){
  socket.on('data',function(data){
    socket.write('Hello!');
  });

  socket.on('end',function(){
    console.log('end client...');
  });
  
  socket.write('welcome to my shop...');
});

server.listen(8142,function(data){
  console.log('listen start...')
});